{% extends 'userCenterTemplate.html' %}

{% load staticfiles %}

{% block title %}个人中心 - 慕学在线网{% endblock %}

{% block userCenterTag %}我收藏的教师{% endblock %}


{% block right %}
<div class="right" >
    <div class="personal_des Releasecont">
        <div class="head">
            <h1>我的收藏</h1>
        </div>
    </div>
    <div class="personal_des permessage">
        <div class="head">
            <ul class="tab_header messagehead">
                <li {% ifequal request.path|slice:"24" "/users/userCenterFavOrg/" %}class="active"{% endifequal %}>
                    <a href="{% url 'users:userCenterFavOrg' %}">课程机构</a>
                </li>
                <li {% ifequal request.path|slice:"28" "/users/userCenterFavTeacher/" %}class="active"{% endifequal %}>
                    <a href="{% url 'users:userCenterFavTeacher' %}">授课教师 </a>
                </li>
                <li {% ifequal request.path|slice:"27" "/users/userCenterFavCourse/" %}class="active"{% endifequal %}>
                    <a href="{% url 'users:userCenterFavCourse' %}">公开课程</a>
                </li>
            </ul>
        </div>
        <div class="companycenter">
            <div class="group_list brief">
                {% for course in courses %}
                <div class="module1_5 box">
                    <a href="{% url 'courses:courseDetail' course.id %}">
                        <img width="214" height="190" src="{{ MEDIA_URL }}{{ course.images }}"/>
                    </a>
                    <div class="des">
                        <a href="{% url 'courses:courseDetail' course.id %}"><h2>{{ course.name }}</h2></a>
                        <span class="fl">时长：<i class="key">{{ course.learnTimes }}</i></span>
                        <span class="fr">学习人数：{{ course.students }}</span>
                    </div>
                    <div class="bottom">
                        <span class="fl">{{ course.name }}</span>
                        <span class="delete-group fr jsDeleteFav_course" data-favid="12"></span>
                    </div>
                </div>
                {% endfor %}
            </div>
        </div>
    </div>
</div>
{% endblock %}
    



